<extend name="Public/base"/>
<block name="body">
    <style>
        .img{
            width: 370px;
            height: 200px;
            border: 0 none;
            float: left;
            object-fit: cover;
            margin-right: 10px;
        }

        .yyzz{
            width: 300px;
            height: 500px;
            object-fit: cover;
        }
    </style>

    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>

    <form action="" method="post" class="form-horizontal">
        <!--  机构名称  -->
        <div class="form-item">
            <label class="item-label">机构名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name}">
            </div>
        </div>

        <notempty name="info.banner">
            <!--  banner图  -->
            <div class="form-item">
                <label class="item-label">banner图</label>
                <div class="controls">
                    <volist name="info['banner']" id="vo">
                        <img class="img" src="{$vo.path}" />
                    </volist>
                </div>
            </div>
        </notempty>

        <!--  负责人姓名  -->
        <div class="form-item">
            <label class="item-label">负责人姓名</label>
            <div class="controls">
                <input type="text" class="text input-large" name="username" value="{$info.username}" readonly>
            </div>
        </div>
        <!--  负责人电话  -->
        <div class="form-item">
            <label class="item-label">负责人电话</label>
            <div class="controls">
                <input type="text" class="text input-large" name="mobile" value="{$info.mobile}" readonly>
            </div>
        </div>
        <!--  身份证号码  -->
        <div class="form-item">
            <label class="item-label">身份证号码</label>
            <div class="controls">
                <input type="text" class="text input-large" name="id_card" value="{$info.idcard}" readonly>
            </div>
        </div>
<!--        &lt;!&ndash;  账户名  &ndash;&gt;
        <div class="form-item">
            <label class="item-label">账户名</label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$info.real_name}" readonly>
            </div>
        </div>
        &lt;!&ndash;  银行卡号  &ndash;&gt;
        <div class="form-item">
            <label class="item-label">银行卡号</label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$info.card_number}" readonly>
            </div>
        </div>
        &lt;!&ndash;  开户地  &ndash;&gt;
        <div class="form-item">
            <label class="item-label">开户地</label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$info.attribution}" readonly>
            </div>
        </div>-->
        <!--  分成比例  -->
        <div class="form-item">
            <label class="item-label">分成比例<span class="check-tips">（请输入大于0小于100的数值）</span></label>
            <div class="controls">
                <input type="number" class="text input-large" name="profit_rate" value="{$info.profit_rate}">
            </div>
        </div>
        <!--  身份证正面  -->
        <notempty name="info.card_front">
            <div class="form-item">
                <label class="item-label">身份证正面</label>
                <div class="controls">
                    <img class="img" src="{$info.card_front|getPicture}" />
                </div>
            </div>
        </notempty>
        <!--  身份证反面  -->
        <notempty name="info.card_behind">
            <div class="form-item">
                <label class="item-label">身份证反面</label>
                <div class="controls">
                    <img class="img" src="{$info.card_behind|getPicture}" />
                </div>
            </div>
        </notempty>
        <!--  手持身份证  -->
        <notempty name="info.business_license">
            <div class="form-item">
                <label class="item-label">手持身份证</label>
                <div class="controls">
                    <img class="yyzz" src="{$info.hold_card|getPicture}" />
                </div>
            </div>
        </notempty>
        <!--  机构介绍  -->
        <div class="form-item">
            <label class="item-label">机构介绍</label>
            <div class="controls">
                <label class="textarea input-large" style="width: 1250px;">
                    <textarea name="desc">{$info.desc}</textarea>
                    {:hook("adminArticleEdit", array("name"=>desc,"value"=>$info["desc"]))}
                </label>
            </div>
        </div>
        <!--  审核状态  -->
        <div class="form-item">
            <label class="item-label">审核状态</label>
            <div class="controls">
                <label><input type="radio" name="status" value="0" <if condition="$info['status'] == 0">checked</if>> 审核中</label>
                <label><input type="radio" name="status" value="1" <if condition="$info['status'] == 1">checked</if>> 审核成功</label>
                <label><input type="radio" name="status" value="2" <if condition="$info['status'] == 2">checked</if>> 审核失败</label>
            </div>
        </div>
        <input type="hidden" value="{:I('id')}" name="id" />
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U("Manage/institutionList")}');
    </script>
</block>
</html>